package com.drojian.page5;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;

public class MyPage5Helper extends SQLiteOpenHelper {
    private static  final  String INFORMATION = "create table page1 (id integer primary key autoincrement,title text default null,origin text default null,type text default null,data text default null,shareUser text default null,image integer default 0)";
    private Context mContext;
    public MyPage5Helper(@Nullable Context context, @Nullable String name, @Nullable SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
        this.mContext = context;
    }
    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(INFORMATION);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
